package jsyf.oa.entity.wreport;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by y on 2018/3/22.
 */
@Entity
@Table(name = "T_WRT_COST_DETAIL", schema = "oa", catalog = "")
public class CostDetailEntity extends BaseEntity implements Serializable {
    private  String id;
    private String fkCostId;
    private BigDecimal predictMoney;
    private String img;
    private String mileage;
    private String license;
    private String hotelName;
    private String hotelTel;
    private String residence;
    private String cohabitation;
    private String host;
    private String guestNature;
    private String guests;
    private String restaurantName;
    private String restaurantTel;
    private String entertainmentVenue;
    private String phone;
    private String beforeOffice;
    private String afterOffice;
    private String officeMatters;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getFkCostId() {
        return fkCostId;
    }

    public void setFkCostId(String fkCostId) {
        this.fkCostId = fkCostId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getMileage() {
        return mileage;
    }

    public void setMileage(String mileage) {
        this.mileage = mileage;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    public String getHotelName() {
        return hotelName;
    }

    public void setHotelName(String hotelName) {
        this.hotelName = hotelName;
    }

    public String getHotelTel() {
        return hotelTel;
    }

    public void setHotelTel(String hotelTel) {
        this.hotelTel = hotelTel;
    }

    public String getResidence() {
        return residence;
    }

    public void setResidence(String residence) {
        this.residence = residence;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getGuestNature() {
        return guestNature;
    }

    public void setGuestNature(String guestNature) {
        this.guestNature = guestNature;
    }

    public String getGuests() {
        return guests;
    }

    public void setGuests(String guests) {
        this.guests = guests;
    }

    public String getRestaurantName() {
        return restaurantName;
    }

    public void setRestaurantName(String restaurantName) {
        this.restaurantName = restaurantName;
    }

    public String getRestaurantTel() {
        return restaurantTel;
    }

    public void setRestaurantTel(String restaurantTel) {
        this.restaurantTel = restaurantTel;
    }

    public String getEntertainmentVenue() {
        return entertainmentVenue;
    }

    public void setEntertainmentVenue(String entertainmentVenue) {
        this.entertainmentVenue = entertainmentVenue;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBeforeOffice() {
        return beforeOffice;
    }

    public void setBeforeOffice(String beforeOffice) {
        this.beforeOffice = beforeOffice;
    }

    public String getAfterOffice() {
        return afterOffice;
    }

    public void setAfterOffice(String afterOffice) {
        this.afterOffice = afterOffice;
    }

    public String getOfficeMatters() {
        return officeMatters;
    }

    public void setOfficeMatters(String officeMatters) {
        this.officeMatters = officeMatters;
    }

    public BigDecimal getPredictMoney() {
        return predictMoney;
    }

    public void setPredictMoney(BigDecimal predictMoney) {
        this.predictMoney = predictMoney;
    }

    public String getCohabitation() {
        return cohabitation;
    }

    public void setCohabitation(String cohabitation) {
        this.cohabitation = cohabitation;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", id);
        obj.put("FK_COST_ID", fkCostId);
        obj.put("IMG", img);
        obj.put("MILEAGE", mileage);
        obj.put("LICENSE", license);
        obj.put("HOTEL_NAME", hotelName);
        obj.put("HOTEL_TEL", hotelTel);
        obj.put("RESIDENCE", residence);
        obj.put("COHABITATION", cohabitation);
        obj.put("HOST", host);
        obj.put("GUEST_NATURE", guestNature);
        obj.put("GUESTS", guests);
        obj.put("RESTAURANT_NAME", restaurantName);
        obj.put("RESTAURANT_TEL", restaurantTel);
        obj.put("ENTERTAINMENT_VENUE", entertainmentVenue);
        obj.put("PHONE", phone);
        obj.put("BEFORE_OFFICE", beforeOffice);
        obj.put("AFTER_OFFICE", afterOffice);
        obj.put("OFFICE_MATTERS", officeMatters);
        obj.put("PREDICT_MONEY",predictMoney);
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_WRT_COST_DETAIL";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("FK_COST_ID", "fkCostId");
        obj.put("IMG", "img");
        obj.put("MILEAGE", "mileage");
        obj.put("LICENSE", "license");
        obj.put("HOTEL_NAME", "hotelName");
        obj.put("HOTEL_TEL", "hotelTel");
        obj.put("RESIDENCE", "residence");
        obj.put("COHABITATION", "cohabitation");
        obj.put("HOST", "host");
        obj.put("GUEST_NATURE", "guestNature");
        obj.put("GUESTS", "guests");
        obj.put("RESTAURANT_NAME", "restaurantName");
        obj.put("RESTAURANT_TEL", "restaurantTel");
        obj.put("ENTERTAINMENT_VENUE", "entertainmentVenue");
        obj.put("PHONE", "phone");
        obj.put("BEFORE_OFFICE", "beforeOffice");
        obj.put("AFTER_OFFICE", "afterOffice");
        obj.put("OFFICE_MATTERS", "officeMatters");
        obj.put("PREDICT_MONEY","predictMoney");
        return obj;
    }
}
